package str;

import java.util.ArrayList;
import java.util.List;

/**
 * create by yongli on 2021-07-17 09:56
 *
 */

public class Str2Arr {
    public static void main(String[] args) {
        String str= "12423ff";
        char[] chars = str.toCharArray();

        // 算了，不借助于jdk的api，自己写吧，就两句for的事
//        List<Character> chs = Arrays.asList(chars);

        List<Character> chs = new ArrayList<>();
        for(char ch :chars){
            chs.add(ch);
        }
        chs.remove(2);
        System.out.println(chs);

    }
}
